home *** CD-ROM | disk | FTP | other *** search
- { SPX Library Version 3.0 Copyright 1993 Scott D. Ramsay }
-
- SPX_FLC is the FLIC animation unit. It allows the playing of Autodesk's
- .FLI, .CEL, .FLC Animator files.
-
- ───────────────────────────────────────────────────────────────────────────
- The following is SPX animation record:
-
- type
- FLC_TYPE = record
- flcfile : file; { file handle }
- isok, { if file is running ok }
- isflc, { is .fli or (.flc/.cel) }
- iscel : boolean; { is .flc or .cel }
- speed, { speed in ms or jiffys }
- smark, { last frame tick count }
- flcf1,flcf2 : longint; { 1st/2nd frame file offsets }
- frames,cfrm : word; { num frames, current frame }
- x,y,w,h : word; { flic x,y, width /height }
- workmem : pointer; { work memory pointer }
- end;
- ───────────────────────────────────────────────────────────────────────────
- The following variables are user callback functions. Set the function
- to your own function to do processing during playback from the functions:
- flc_play,flc_playlib
-
- UserPreFrame,
- UserPostFrame,
- UserFrameDelay : flc_proc;
-
- ───────────────────────────────────────────────────────────────────────────
- function flc_open(name:string;var flc:FLC_TYPE):integer;
- Opens a .FLC, Ani Pro .CEL, or .FLI file. Returns 0 for no error
- or a FLC error code.
-
- Check the two variables isflc/iscel to see what type of anim:
-
- isflc = TRUE AniPro .FLC or .CEL file
- isflc = FALSE Animator .FLI file
- iscel = TRUE AniPro .CEL file (isflc should also be true)
-
- ───────────────────────────────────────────────────────────────────────────
- function flc_frame(var flc:FLC_TYPE):integer;
- Plays a single frame on an animation file. If flc_frame plays
- the last frame in the animation, the next call will start at
- the first frame. (usefull for looping animations)
-
- Returns 0 for no error or a FLC error code.
- ───────────────────────────────────────────────────────────────────────────
- procedure flc_close(var flc:FLC_TYPE);
-
- Closes an animation file.
-
- ───────────────────────────────────────────────────────────────────────────
- function flc_play(name:string):integer;
-
- Quick method of playing a animation file. Plays an animation once. Set
- the variables UserPreFrame/UserPostFrame/UserFrameDelay to process
- playback.
-
-
- ───────────────────────────────────────────────────────────────────────────
- function flc_openLib(lib:pSpxLib;name:string;var flc:FLC_TYPE):integer;
-
- Same as flc_open. Opens an animation from an SPX archive file
-
- ───────────────────────────────────────────────────────────────────────────
- function flc_playLib(lib:pSpxLib;name:string):integer;
-
- Same as flc_play. Plays an animation from an SPX archive file
- ───────────────────────────────────────────────────────────────────────────
-
-